#!/bin/python3
import sys
import requests

tousers = sys.argv[1].split(",")
for touser in tousers:
    url = "http://prom.so.qihoo.net:8000/api/sms/staffsms"
    payload = {
      "domain_name": touser,
      "msg": sys.argv[2]
    }
    response = requests.post(url, data=payload, timeout=10)
    print(response.json())
